<template>
  <div id="home">
    <Header>
      <template #tupian>
      </template>
      <template #wenzi>
        <p>奈商城</p>
      </template>
    </Header>
    <Search style="margin-top:1.29rem;"></Search>
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
      <van-swipe-item><img src="../assets/images/home (7).png" alt=""></van-swipe-item>
      <van-swipe-item><img src="../assets/images/home (7).png" alt=""></van-swipe-item>
      <van-swipe-item><img src="../assets/images/home (7).png" alt=""></van-swipe-item>
      <van-swipe-item><img src="../assets/images/home (7).png" alt=""></van-swipe-item>
    </van-swipe>
    <nav>
        <div class="daohang">
            <div class="one">
                <img src="../assets/Icon/主页/home-cat1.png" alt="">
                <span>菲茨</span>
            </div>
            <div class="one">
                <img src="../assets/Icon/主页/home-cat2.png" alt="">
                <span>克奈圃</span>
            </div>
            <div class="one">
                <img src="../assets/Icon/主页/home-cat3.png" alt="">
                <span>服装</span>
            </div>
            <div class="one">
                <img src="../assets/Icon/主页/home-cat4.png" alt="">
                <span>其他</span>
            </div>
        </div>
        <div class="zhanwei">

        </div>
    </nav>
    <section>
        <!-- <div class="tuijian">
            <div class="hufa">
    
            </div>
            <div class="jingxuan">
                精选推荐
            </div>
            <div class="hufa">
    
            </div>
        </div> -->

        <div class="recommend">

            <div class="lt">

                <div class="round"></div>
            </div>

            <div class="mid">

                <p>精选推荐</p>
            </div>

            <div class="rt">

                <div class="round"></div>
            </div>
        </div>
        <div class="neirong">
            <div class="shangpin youkuang">
                <div class="top">
                    <img class="youkuang" src="../assets/images/home (1).png" alt="">
                </div>
                <div class="center">
                    莫次有机PWE活性美白洗面奶
                </div>
                <div class="bottom">
                    <div class="left">
                        ￥169
                    </div>
                    <div class="right">
                        <s>￥229</s>
                    </div>
                </div>
                <div class="cuxiao">
                    <img src="../assets/Icon/主页/home-new.png" alt="">
                </div>
            </div>
            <div class="shangpin">
                <div class="top">
                    <img src="../assets/images/home (2).png" alt="">
                </div>
                <div class="center">
                    莫次有机PWE活性美白洗面奶
                </div>
                <div class="bottom">
                    <div class="left">
                        ￥169
                    </div>
                    <div class="right">
                        <s>￥229</s>
                    </div>
                </div>
                <div class="cuxiao">
                    <img src="../assets/Icon/主页/home-promotion.png" alt="">
                </div>
            </div>
            <div class="shangpin youkuang">
                <div class="top">
                    <img class="youkuang" src="../assets/images/home (3).png" alt="">
                </div>
                <div class="center">
                    莫次有机PWE活性美白洗面奶
                </div>
                <div class="bottom">
                    <div class="left">
                        ￥169
                    </div>
                    <div class="right">
                        <s>￥229</s>
                    </div>
                </div>
            </div>
            <div class="shangpin">
                <div class="top">
                    <img src="../assets/images/home (4).png" alt="">
                </div>
                <div class="center">
                    莫次有机PWE活性美白洗面奶
                </div>
                <div class="bottom">
                    <div class="left">
                        ￥169
                    </div>
                    <div class="right">
                        <s>￥229</s>
                    </div>
                </div>
            </div>
            <div class="shangpin youkuang">
                <div class="top">
                    <img class="youkuang" src="../assets/images/home (5).png" alt="">
                </div>
                <div class="center">
                    莫次有机PWE活性美白洗面奶
                </div>
                <div class="bottom">
                    <div class="left">
                        ￥169
                    </div>
                    <div class="right">
                        <s>￥229</s>
                    </div>
                </div>
            </div>
            <div class="shangpin">
                <div class="top">
                    <img src="../assets/images/home (6).png" alt="">
                </div>
                <div class="center">
                    莫次有机PWE活性美白洗面奶
                </div>
                <div class="bottom">
                    <div class="left">
                        ￥169
                    </div>
                    <div class="right">
                        <s>￥229</s>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <Footer :active="0"></Footer>
  </div>

</template>



<script>

import Footer from '../components/footer.vue'
import Search from '../components/nav-sousuo.vue'
import Header from '../components/header.vue'


export default {
  components: {
    Footer,
    Search,
    Header,
  }
}
</script>

<style lang="less" scoped>
.my-swipe .van-swipe-item {
  color: #fff;
  font-size: 20px;
  line-height: 150px;
  text-align: center;
  background-color: #39a9ed;

  img {
    width: 10rem;
  }
}
nav {
    background-color: #fff;
    .zhanwei{
        height: 0.27rem;
        width: 10rem;
        background-color: #efeff4;
    }
    .daohang {
        width: 10rem;
        height: 1.81rem+0.27rem;
        display: flex;
        align-items: center;
        justify-content: space-around;
        .one {
            font-size: 0.32rem;
            font-family: PingFang;
            font-weight: 500;
            color: #444444;
            text-align: center;

            span {
                display: block;
                margin-top: 0.04rem;
            }

            img {

                height: 0.71rem;
            }
        }
    }
}

section {
    background-color: #fff;
    // .tuijian {
    //     height: 1.07rem;
    //     display: flex;
    //     align-items: center;
    //     justify-content: center;

    //     .hufa {
    //         width: 1.33rem;
    //         height: 0.07rem;
    //         background: #E5E5E5;
    //         border-radius: 50%;
    //     }

    //     .jingxuan {
    //         font-size: 0.4rem;
    //         font-family: PingFang;
    //         font-weight: 500;
    //         color: #444444;
    //         margin: 0 0.32rem;
    //     }
    // }
    .recommend {
         height: 1.06666667rem;
         background-color: #fff;
         display: flex;
         align-items: center;
         justify-content: center;
        }
        .recommend .lt {
         height: 0.01333333rem;
         width: 1.26666667rem;
         background-color: #e5e5e5;
         position: relative;
        }
        .recommend .lt .round {
         width: 0.06666667rem;
         height: 0.06666667rem;
         border-radius: 50%;
         background-color: #e5e5e5;
         position: absolute;
         right: 0;
         top: 50%;
         transform: translateY(-50%);
        }
        .recommend .mid {
         margin: 0px 0.33333333rem;
        }
        .recommend .mid p {
         font-size: 0.37333333rem;
        }
        .recommend .rt {
         height: 0.01333333rem;
         width: 1.26666667rem;
         background-color: #e5e5e5;
         position: relative;
        }
        .recommend .rt .round {
         width: 0.06666667rem;
         height: 0.06666667rem;
         border-radius: 50%;
         background-color: #e5e5e5;
         position: absolute;
         left: 0;
         top: 50%;
         transform: translateY(-50%);
        }

    .neirong {
        display: flex;
        flex-wrap: wrap;
        padding-bottom: 1.31rem;
        .youkuang{
            border-right: 0.01rem solid #eeeeee;
        }
        .shangpin {
            width: 5rem;
            display: flex;
            flex-direction: column;
            position: relative;
            .cuxiao{
                position: absolute;
                top: 0;
                left: 4.1333rem;
                img{
                    width: 0.8533rem;
                }
            }
            .top {
                img {
                    width: 5rem;
                }
            }

            .center {
                font-size: 0.32rem;
                font-family: PingFang;
                font-weight: 500;
                color: #444444;
                margin: 0.3rem 0.27rem;
            }

            .bottom {
                display: flex;
                height: 0.31rem;
                align-items: flex-end;
                margin-left: 0.25rem;
                margin-bottom: 0.25rem;

                .left {
                    font-size: 0.4rem;
                    font-family: PingFang;
                    font-weight: bold;
                    color: #000000;
                }

                .right {
                    font-size: 0.24rem;
                    font-family: PingFang;
                    font-weight: 500;
                    text-decoration: line-through;
                    color: #AAAAAA;
                    margin-left: 0.2rem;
                }
            }
        }
    }
}
</style>
